import java.sql.Driver;
import java.sql.SQLException;

public class jdbc {
    public static void main(String[] args) throws SQLException {
        //1.注册数据库驱动
        //Driver driver = new com.mysql.jdbc.Driver();
        //DriverManager.registerDriver(driver);

        Class.forName(com.mysql.Driver);

        //2.获取数据库连接
    }
}
